var status = -1;
var selectionLog = [];

function start(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status == a++) {
            cm.warp(610064400, 0, true);
            cm.npc_LeaveField("oid=2754606");
            cm.npc_LeaveField("oid=2754606");
            cm.npc_LeaveField("oid=2754607");
            cm.npc_LeaveField("oid=2754607");
            cm.npc_LeaveField("oid=2754608");
            cm.npc_LeaveField("oid=2754608");
            cm.npc_LeaveField("oid=2754609");
            cm.npc_LeaveField("oid=2754609");
            cm.npc_LeaveField("oid=2754610");
            cm.npc_LeaveField("oid=2754610");
            cm.npc_LeaveField("oid=2754611");
            cm.npc_LeaveField("oid=2754611");
            cm.npc_LeaveField("oid=2754612");
            cm.npc_LeaveField("oid=2754612");
            cm.npc_LeaveField("oid=2754613");
            cm.npc_LeaveField("oid=2754613");
            cm.npc_LeaveField("oid=2754614");
            cm.npc_LeaveField("oid=2754614");
            cm.npc_LeaveField("oid=2754615");
            cm.npc_LeaveField("oid=2754615");
            cm.npc_LeaveField("oid=2754616");
            cm.npc_LeaveField("oid=2754616");
            cm.npc_LeaveField("oid=2754617");
            cm.npc_LeaveField("oid=2754617");
            cm.npc_LeaveField("oid=2754618");
            cm.npc_LeaveField("oid=2754618");
            cm.npc_LeaveField("oid=2754619");
            cm.npc_LeaveField("oid=2754619");
            cm.npc_LeaveField("oid=2754620");
            cm.npc_LeaveField("oid=2754620");
            cm.npc_LeaveField("oid=2754621");
            cm.npc_LeaveField("oid=2754621");
            cm.dispose()
        }
    }
}

function stage0(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status == a++) {
            var e = cm.getQuest();
            cm.askYesNo("这个任务的依次对话脚本还没有修复哦。它的脚本位于： #b 脚本/任务/61362.js#k\r\n\r\n如果你有兴趣，欢迎一起来修复！\r\n\r\n那么现在，你要立刻开始这个任务吗？")
        } else {
            if (status == a++) {
                cm.forceStartQuest();
                cm.dispose()
            }
        }
    }
}

function end(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status == a++) {
            var e = cm.getQuest();
            cm.askYesNo("这个任务的结束脚本还没有修复哦。它的脚本位于： #b /脚本/任务/#e" + e + "#n.js#k\r\n\r\n如果你有兴趣，欢迎一起来修复！\r\n\r\n那么现在，你要立刻完成这个任务吗？")
        } else {
            if (status == a++) {
                cm.forceCompleteQuest();
                cm.dispose()
            }
        }
    }
};